#include <iostream>
#include <thread>
void func(int i) {
	while (true) {
		std::cout << "hello world" << std::endl;
		std::this_thread::sleep_for(std::chrono::microseconds(50));
	}	
}

int main()
{
	std::thread t1(func, 1);
	std::cout << "support num is " << t1.hardware_concurrency() << std::endl;
	std::cout << t1.get_id() << std::endl;
	std::cout << std::this_thread::get_id() << std::endl;

	t1.join();
	return 0;
}